package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class testLend.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class testLend
{
    private ModelLayer.Person person1;
    private ModelLayer.AddressBook addressB1;
    private ModelLayer.DVDCollection dVDColle1;
    private ModelLayer.DVD dVD1;
    private ModelLayer.Copy copy1;
    private ModelLayer.LendCollection lendColl1;
    private ModelLayer.Lend lend1;

    
    
    
    
    

    /**
     * Default constructor for test class testLend
     */
    public testLend()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        person1 = new ModelLayer.Person(1, "12322", "12322", "12322", "12322", "12322");
        addressB1 = new ModelLayer.AddressBook();
        addressB1.addPerson(person1);
        addressB1.listAllPersons();
        dVDColle1 = new ModelLayer.DVDCollection();
        dVD1 = new ModelLayer.DVD(1, "123", "123", "123");
        dVDColle1.addDVD(dVD1);
        copy1 = new ModelLayer.Copy(1, "123", "123");
        dVD1.addCopies(copy1);
        dVDColle1.listAllDvds();
        lendColl1 = new ModelLayer.LendCollection();
        lend1 = new ModelLayer.Lend(0, "123", "123", "123");
        lendColl1.addLend(lend1);
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }
}
